package com.atguigu;

/**
 * @author li.chunlong lcl253-137@alibaba-inc.com
 * @desc 鸭子实现类-野鸭
 * @date 2021-11-01
 */
public class WildDuck extends Duck {

    /**
     * 构造器，传入FlyBehavior的对象
     */
    public  WildDuck() {
        flyBehavior = new GoodFlyBehavior();
    }


    @Override
    public void display() {
        System.out.println("这是野鸭");
    }
}
